home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat2 / standard / getsockname.z / getsockname
Encoding:
Text File  |  2002-10-03  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GGGGEEEETTTTSSSSOOOOCCCCKKKKNNNNAAAAMMMMEEEE((((2222))))                                                  GGGGEEEETTTTSSSSOOOOCCCCKKKKNNNNAAAAMMMMEEEE((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getsockname - get socket name
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssoooocccckkkkeeeetttt....hhhh>>>>
  14.  
  15.      iiiinnnntttt ggggeeeettttssssoooocccckkkknnnnaaaammmmeeee ((((iiiinnnntttt ssss,,,, ssssttttrrrruuuucccctttt ssssoooocccckkkkaaaaddddddddrrrr ****nnnnaaaammmmeeee,,,, iiiinnnntttt ****nnnnaaaammmmeeeelllleeeennnn))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _G_e_t_s_o_c_k_n_a_m_e returns the current _n_a_m_e for the specified socket.  The
  19.      _n_a_m_e_l_e_n parameter should be initialized to indicate the amount of space
  20.      pointed to by _n_a_m_e.  On return it contains the actual size of the name
  21.      returned (in bytes).
  22.  
  23. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  24.      A 0 is returned if the call succeeds, -1 if it fails.
  25.  
  26. EEEERRRRRRRROOOORRRRSSSS
  27.      The call succeeds unless:
  28.  
  29.      [EBADF]        The argument _s is not a valid descriptor.
  30.  
  31.      [ENOTSOCK]     The argument _s is a file, not a socket.
  32.  
  33.      [ENOBUFS]      Insufficient resources were available in the system to
  34.                     perform the operation.
  35.  
  36.      [EFAULT]       The _n_a_m_e parameter points to memory not in a valid part of
  37.                     the process address space.
  38.  
  39. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  40.      bind(2), socket(2), getpeername(2)
  41.  
  42. NNNNOOOOTTTTEEEESSSS
  43.      ABI-compliant versions of the above call can be obtained from
  44.      _l_i_b_s_o_c_k_e_t._s_o.
  45.  
  46.      This call does not return useful results when used on sockets of type
  47.      AF_UNIX, unless the socket was explicitly bound to a pathname.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.